﻿using System;
using Xin478.MySocket;

namespace Xin478.CSWork.Common
{
    public delegate void CommandReceiveHandler(DatagramBuilder builder, ref bool cancel);
    public delegate void DatagramReceiveHandler(Session session, ref bool cancel);

    public interface ICorrespond
    {
        event CommandReceiveHandler CommandReceived;
        event DatagramReceiveHandler DatagramReceived;
        TransferFileHelper TransferFileHelper { get; }
    }
}
